<?php
$password = array('id' => 'password', 'name' => 'password', 'size' => 30);
$email = array('id' => 'email', 'name' => 'email', 'value' => set_value('email'), 'size' => 30, 'maxlength' => 80);
$submit = array('class' => 'btn btn-success', 'name' => 'change', 'value' => lang('send_confirmation_email'));

echo form_open($this->uri->uri_string());
?>

<div class="page-header">
    <h3><?php echo lang('auth_send_confirmation_email'); ?></h3>
</div>

<p>
    <span class="form-inline">
        <?php
        echo
        lang('auth_old_password', $old_password['id']).form_password($old_password).
        form_error($old_password['name'], '<span class="alert">', '</span>');
        if(isset($errors[$old_password['name']]))
            echo '<span class="alert">'.$errors[$old_password['name']].'</span>';
        ?>
    </span>
    <span class="form-inline">
        <?php
        echo
        lang('auth_new_email', $email['id']).form_password($email).
        form_error($email['name'], '<span class="alert">', '</span>');
        if(isset($errors[$email['name']]))
            echo '<span class="alert">'.$errors[$email['name']].'</span>';
        ?>
    </span>
</p>

<p class="form-actions"><?php echo form_submit($submit); ?></p>

<?php echo form_close(); ?>